package com.hsqn.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 老人用药记录表
 * </p>
 *
 * @author lingwenjie
 * @since 2025-11-05
 */
@Getter
@Setter
@TableName("medication_record")
public class MedicationRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 老人ID
     */
    private Long elderlyId;

    /**
     * 药品名称
     */
    private String medicineName;

    /**
     * 剂量
     */
    private String dosage;

    /**
     * 频次
     */
    private String frequency;

    /**
     * 开始日期
     */
    private LocalDate startDate;

    /**
     * 结束日期
     */
    private LocalDate endDate;

    /**
     * 医嘱
     */
    private String doctorAdvice;

    /**
     * 提醒标志(0-不提醒,1-提醒)
     */
    private Byte remindFlag;

    /**
     * 提醒时间(多个逗号分隔)
     */
    private String remindTime;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    /**
     * 更新时间
     */
    private LocalDateTime updatedTime;
}
